# 传入数字，str等不可变类型
def test01(a):
    print('&a = {}'.format(id(a)))
    a = 100
    print('&a = {}'.format(id(a)))


x = 1
print('&x = {}'.format(id(x)))
test01(x)
print(x)


# 传入list等可变数据类型
def test02(b):
    print('&b = {}'.format(id(b)))
    b[0] = 'test02'
    print('&b = {}'.format(id(b)))


y = [1, 2, 3, 4]
print('&y = {}'.format(id(y)))
test02(y)
print(y)
